package win.demonlegion.service.inte;

import win.demonlegion.mapper.BaseMapper;
import win.demonlegion.module.UserBean;

import java.util.List;

/**
 * @Author:Samson
 * @Description:
 * @Date:Created in 2017/5/17.
 */
public interface UserService extends BaseMapper<UserBean>{

    /**
     * 登录
     * @return
     */
    UserBean login(String phone,String uPwd);

    /**
     * @v2.1.0
     */
    UserBean findById(String id);



    /**
     * 后台管理通过用户ID或手机搜索用户
     * @param keyword
     * @return
     */
    List<UserBean> selectUserByKeyword(String keyword, int vaCode);

    /**
     * 查询手机号是否注册
     * @param phone
     * @return
     */
    UserBean selectByPhone(String phone);


}
